<?php
define('SE_PAGE_AJAX', TRUE);

$page = "swf";

chdir('../../../');
include "header.php";

if (isset($_SESSION["flash"]) && isset($_GET["file"]) && file_exists("./include/msep/includes/swf/{$_GET["file"]}"))
{
      $referrer = $_SERVER["HTTP_REFERER"];
      $referrer = parse_url($referrer);

      if($referrer["host"] == $_SESSION["flash"])
      {
            header("Content-type: application/x-shockwave-flash");
            header('Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1');
            header('Cache-Control: no-cache, no-store, must-revalidate');
            header('Pragma: no-cache');

            readfile("./include/msep/includes/swf/{$_GET["file"]}");
            exit;
      }
}

header("Location: ../../../");
exit;
?>